home *** CD-ROM | disk | FTP | other *** search
- alias chelprun {
- wincheck %chelpwin -pl19 +bnx %chelpwin $center(634,380,%chelpwin) 634 380 %chelpwin comic sans ms 12
- .timer 1 1 window -b %chelpwin
- chlpsetup
- }
- alias chlpsetup {
- set %chlptpcs $read -s $+ topics sysfiles\help\lines.mrc
- :loop1
- if (%chlptpcs <= 0) { goto done1 }
- iline -l %chelpwin 1 $read -l $+ %chlptpcs sysfiles\help\topics.mrc
- dec %chlptpcs
- goto loop1
- :done1
- drawfill %chelpwin 0 0 0 0
- drawpic %chelpwin 75 0 sysfiles/help/help.bmp
- drawtext %chelpwin 2 arial 12 1 365 Copyright ⌐ 1998 C-Team
- set %win.x $window(%chelpwin).x | set %win.y $window(%chelpwin).y
- wincheck @Topic +bnx @Topic $calc(%win.x) $calc(%win.y + 104) 425 263 @topic Comic sans ms 12
- sline -l %chelpwin 4 | unset %win.x %win.y
- chlpl startá
- }
- alias chlpl {
- drawtext %chelpwin 4 arial 15 $center(615,170) Loading...
- window -n @topic | .timer 1 1 window -r @topic | .timer 1 1 drawtext %chelpwin 0 comic 15 $center(615,170) Loading...
- if ($1 == $null) { clear @topic | loadbuf -p @topic sysfiles\help\ $+ start.chf | halt }
- else {
- set %chlptf $read -s $+ $gettok($1,1,160) sysfiles\help\tfiles.mrc
- if (%chlptf == $null || $gettok($1,1,160) == $null) { clear @topic | loadbuf -p @topic sysfiles\help\ $+ start.chf | halt }
- clear @topic | loadbuf -p @topic sysfiles\help\ $+ %chlptf
- sline @topic 11
- }
- }
- menu @topic {
- dclick window -n %chelpwin | window -r %chelpwin | window -n @topic | window -r @topic | chlpl $sline(%chelptop,1)
- Close Help:chelpc
- }
- menu @C-ScriptáHelpáWindow {
- mouse window -n @topic | window -r @topic
- sclick window -n @topic | window -r @topic
- dclick window -n @topic | window -r @topic | chlpl $sline(%chelpwin,1)
- Open Topic:chlpl $sline(%chelpwin,1)
- Close Help:chelpc
- }
- on 1:close:@topic,%chelpwin:chelpc
- alias chelpc {
- window -c @topic
- window -c %chelpwin
- .timer 1 1 .unload -rs chelp.mrc
- }
-